import request from '@/utils/request'

/**
* 扫码信息分页查询
* @param {查询条件} data
*/
export function listScanInfo(query) {
  return request({
    url: 'review/scaninfo/list',
    method: 'get',
    params: query,
  })
}

/**
* 新增扫码信息
* @param data
*/
export function addScanInfo(data) {
  return request({
    url: 'review/scaninfo',
    method: 'post',
    data: data,
  })
}
/**
* 修改扫码信息
* @param data
*/
export function updateScanInfo(data) {
  return request({
    url: 'review/scaninfo',
    method: 'PUT',
    data: data,
  })
}
/**
* 获取扫码信息详情
* @param {Id}
*/
export function getScanInfo(id) {
  return request({
    url: 'review/scaninfo/' + id,
    method: 'get'
  })
}

/**
* 删除扫码信息
* @param {主键} pid
*/
export function delScanInfo(pid) {
  return request({
    url: 'review/scaninfo/delete/' + pid,
    method: 'delete'
  })
}
